﻿disableSerialization;
_req = _this select 0;

_display = finddisplay 8000;
_cmd = _display displayctrl 104;
_conf = _display displayctrl 200;
switch (_req) do {

// Demandes du joueur


	comment "Type IA Statique";
	case "1": {

		_conf CtrlSetText "Réglage IA statique";
		_conf CtrlSetTextColor [1,0,0,1];
		if (initialisat) then
		{
		typeia = 1 ; statique = true ; mobile = false ; agressive = false ; publicvariable "typeia" ; publicvariable "statique" ; publicvariable "mobile" ; publicvariable "agressive"; _mf = [] execVM "computer\msge_ia1.sqf" ;
		};
		};
		
		comment "Type IA Mobile";
	case "2": {

		_conf CtrlSetText "Réglage IA mobile";
		_conf CtrlSetTextColor [1,0,0,1];
		if (initialisat) then
		{
		typeia = 2 ; statique = false ; mobile = true ; agressive = false ; publicvariable "typeia" ; publicvariable "statique" ; publicvariable "mobile" ; publicvariable "agressive"; _mf = [] execVM "computer\msge_ia2.sqf" ;
		};
		};
		
			comment "Type IA Mobile";
	case "3": {

		_conf CtrlSetText "Réglage IA agressive";
		_conf CtrlSetTextColor [1,0,0,1];
		if (initialisat) then
		{
		typeia = 3 ; statique = false ; mobile = false ; agressive = true ; publicvariable "typeia" ; publicvariable "statique" ; publicvariable "mobile" ; publicvariable "agressive"; _mf = [] execVM "computer\msge_ia3.sqf" ;
		};
		};

	comment "Concentration ennemie";
	case "4": {

		_conf CtrlSetText "Réglage zone ENI";
		_conf CtrlSetTextColor [1,0,0,1];
		if (initialisat) then
		{
		concentration_active = true; publicvariable "concentration_active"; _mf = [] execVM "computer\msge_concentration.sqf" ;
		};
		};
		
		comment "Nbre de groupes ennemis";
	case "5": {

		_conf CtrlSetText "Réglage zone ENI";
		_conf CtrlSetTextColor [1,0,0,1];
		if (initialisat) then
		{
		nbre_ge_active = true; publicvariable "nbre_ge_active"; _mf = [] execVM "computer\msge_grpe_eni.sqf" ;
		};
		};
		
		comment "Placer Objectif";
	case "7": {

		_conf CtrlSetText "Placer Objectif";
		_conf CtrlSetTextColor [1,0,0,1];
		if (initialisat) then
		{
		_gnuf1=[] execVM "Computer\request_obj.sqf";
		};
		};

		comment "Placer Insertion Sol";
	case "8": {

		_conf CtrlSetText "Placer Insertion Sol";
		_conf CtrlSetTextColor [1,0,0,1];
		if (initialisat) then
		{
		_gnuf2=[] execVM "Computer\request_insertionsol.sqf";
		};
		};
		
			comment "Placer Insertion Para";
	case "9": {

		_conf CtrlSetText "Placer Insertion Para";
		_conf CtrlSetTextColor [1,0,0,1];
		if (initialisat) then
		{
		_gnuf3=[] execVM "Computer\request_insertionpara.sqf";
		};
		};
		
				comment "Respawn carceral";
	case "10": {

		_conf CtrlSetText "Respawn carceral";
		_conf CtrlSetTextColor [1,0,0,1];
		respawn_normal = false ; respawn_carceral = true ; publicvariable "respawn_normal"; publicvariable "respawn_carceral"; _mf = [] execVM "computer\msge_respawn.sqf" ;
			if (opfor_vts) then
			{
			deletemarker "respawn_east" ;
			markerresp_opfor = createMarker ["respawn_east",position prisone] ; markerresp_opfor setMarkerShape "ICON" ; "respawn_east" setMarkerType "empty" ; "respawn_east" setMarkerColor "ColorRed"; "respawn_east" setMarkerText "respawn";

			};
			
		if (blufor_vts) then
			{
			deletemarker "respawn_east" ;
			markerresp_blufor = createMarker ["respawn_west",position prison] ; markerresp_blufor setMarkerShape "ICON" ; "respawn_west" setMarkerType "empty" ; "respawn_west" setMarkerColor "ColorRed"; "respawn_west" setMarkerText "respawn";

			};
		
		};

	comment "demande pluie";
	case "11": {

		_conf CtrlSetText "demande pluie";
		_conf CtrlSetTextColor [1,0,0,1];
		pluie_active = true; publicvariable "pluie_active"; _mf = [] execVM "computer\msge_pluie.sqf" ;
		};
		
	comment "demande brume";
	case "12": {

		_conf CtrlSetText "demande brume";
		_conf CtrlSetTextColor [1,0,0,1];
		brume_active = true;publicvariable "brume_active"; _mf = [] execVM "computer\msge_brume.sqf" ;
		};
		
	comment "demande heure";
	case "13": {

		_conf CtrlSetText "demande heure";
		_conf CtrlSetTextColor [1,0,0,1];
		heure_active = true;publicvariable "heure_active"; _mf = [] execVM "computer\msge_heure.sqf" ;
		};
		
		comment "Création de base";
	case "6": {

		_conf CtrlSetText "Créer base";
		_conf CtrlSetTextColor [1,0,0,1];
		crea_base = true;publicvariable "crea_base"; _mf = [] execVM "computer\msge_base.sqf" ;
		};
		
		comment "Demande artillerie";
	case "14": {

		_conf CtrlSetText "Artillerie";
		_conf CtrlSetTextColor [1,0,0,1];
		_gnuf4=[] execVM "Computer\request_arty.sqf";
		};
		
		comment "Demande Sat";
	case "15": {

		OnMapArrayS=[];
		OnMapSingleClick "OnMapArrayS=OnMapArrayS+[_pos];""Sat_Marker"" setMarkerpos _pos;SAT_Logic setpos _pos";
		_Sat=[] execVM "Computer\request_Sat.sqf";
		};
		
	comment "Confirmation Sat";
	case "16": {

		_conf CtrlSetText "Position satellite confirmée";
		_conf CtrlSetTextColor [1,0,0,1];
		OnMapSingleClick "";
		_ok=[] execVM "Computer\request_Sat.sqf";
		};
		
};	
if (true) exitWith {};